package com.tech.arno.spicy.staticVal;

import android.Manifest;
import android.os.Environment;

/*
*   @package:     com.tech.arno.spicy.staticVal
*   @fileName:    Constant
*   @author:    ArnoFrost
*   @date:  2017/12/19 0019 15:07
*   @desc:     常用静态变量Constant配置文件
*/

public class Constant {
    /**
     * 权限常量相关
     */
    //外部存储读写权限 统一用十六进制的数来标识
    public static final int WRITE_READ_EXTERNAL_CODE = 0x01;
    public static final String[] WRITE_READ_EXTERNAL_PERMISSION = new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE};
    //调用摄像头
    public static final int HARDWEAR_CAMERA_CODE = 0x02;
    public static final String[] HARDWEAR_CAMERA_PERMISSION = new String[]{Manifest.permission.CAMERA};
    //读取手机信息
    public static final int READ_PHONE_CODE = 0x03;
    public static final String[] READ_PHONE_STATE_PERMISSON = new String[]{Manifest.permission.READ_PHONE_STATE};

    public static final String SPICY_MSG = "3";

    //整个应用文件下载保存路径
    public static String APP_PHOTO_DIR = Environment.
            getExternalStorageDirectory().getAbsolutePath().
            concat("/imooc_business/photo/");
}
